package com.pengshun.modules.api.coal.result;

import lombok.Data;


import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;

/**
 * 矿口 煤炭价格 趋势 图 结果类
 */
@Data
public class CoalPriceEchartsResult implements Serializable {


    /** 煤炭id*/
    private Long coalId;

    /** 煤炭名称 */
    private String name;

    /**  价格 */
    private BigDecimal price;

    /**  单位 */
    private String unit;

    /** 颜色 */
    private String color;

    /** 类型 1：7天  2： 年 */
    private Integer type;


    private List<CoalPriceDate> dates;

    public CoalPriceEchartsResult() {
    }

    public CoalPriceEchartsResult(Long coalId, String name, BigDecimal price, String unit) {
        this.coalId = coalId;
        this.name = name;
        this.price = price;
        this.unit = unit;
    }

    public CoalPriceEchartsResult(Long coalId, String name, BigDecimal price, String unit, String color, Integer type, List<CoalPriceDate> dates) {
        this.coalId = coalId;
        this.name = name;
        this.price = price;
        this.unit = unit;
        this.color = color;
        this.type = type;
        this.dates = dates;
    }

    public CoalPriceEchartsResult(String color, List<CoalPriceDate> dates) {
        this.color = color;
        this.dates = dates;
    }
}
